Some and every functional javascript